package com.xjgc.webservice.server.realsap;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.xjgc.webservice.XmlUtils;
import lombok.Data;

/**
 * @author: 小逗号
 * @date: 2023/8/8
 * @description:
 * @since:
 */
@Data
@XStreamAlias("REQUEST_DATA")
public class SapToMsiRealVO {

    @XStreamAlias("SUCCESS")
    private boolean success;
    @XStreamAlias("MESSAGE")
    private String message = "";

    public static SapToMsiRealVO error(String message) {
        SapToMsiRealVO vo = new SapToMsiRealVO();
        vo.success = false;
        vo.message = message;
        return vo;
    }

    public static SapToMsiRealVO ok(String message) {
        SapToMsiRealVO vo = new SapToMsiRealVO();
        vo.success = true;
        vo.message = message;
        return vo;
    }

    public static SapToMsiRealVO ok() {
        SapToMsiRealVO vo = new SapToMsiRealVO();
        vo.success = true;
        return vo;
    }

}
